package com.team.employment.web.admin.mapper;

import com.team.employment.model.entity.CompanyStatutory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.employment.web.admin.vo.StatutoryCompanyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 陈钰儿
* @description 针对表【company_statutory(公司法定人关联表)】的数据库操作Mapper
* @createDate 2025-04-11 15:49:26
* @Entity com.team.employment.model.entity.CompanyStatutory
*/
public interface CompanyStatutoryMapper extends BaseMapper<CompanyStatutory> {
    /**
     * 逻辑删除法定人并封禁关联公司
     * @param statutoryId 法定人ID
     * @return 影响行数
     */
    int deleteStatutoryWithCompanyUpdate(@Param("statutoryId") Long statutoryId);
    int logicDeleteStatutory(@Param("statutoryId") Long statutoryId);
    int deleteCompanyStatus(@Param("statutoryId")Long statutoryId);


}




